package com.itheima.mapper;

import com.itheima.pojo.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

/**
 * @Author CandyWall
 * @Date 2022/1/24--1:05
 * @Description
 */
@Mapper
public interface BookMapper {
    public Book selectByName(@Param("name") String name);

    public Book getById(@Param("id") Serializable id);

    public int save(Book book);

    public List<Book> list();
}
